package file;

import java.io.File;

public class DeleteDirDemo01 {
    public static void main(String[] args) {
        File file = new File("pics");
        if (file.isDirectory()){
            boolean flag = file.delete();
            System.out.println(flag ? "delete ok":"delete failure");
        }
    }
}
